//
//  WDURLProtocol.h
//  WDLogicBehind
//
//  Created by Alean on 2022/12/1.
//

#import <Foundation/Foundation.h>

/*
实现以下2个功能的URLProtocol，1: httpdns 2: 域名降级
*/

NS_ASSUME_NONNULL_BEGIN

@interface WDURLProtocol : NSURLProtocol
+ (NSDictionary *)getIPAddresses;
+ (BOOL)isIpv6;
+ (BOOL)isValidIP:(NSString *)ipStr;

+ (void)disableHTTPDNS;
+ (void)disableBackupDomain;

+ (void)enableHTTPDNS;
+ (void)enableBackupDomain;

@end

NS_ASSUME_NONNULL_END
